     <!--{include header_order}-->
 

<div id="bdw" class="bdw has-order-nav">
  <div id="bd" class="cf" >
 <!--{include my_nav}-->


<div id="content" class="coupons-box">
    <div class="mainbox mine">
     
        
 
        <div class="orders-wrapper" id="order-list">
            <div class="orders-head">
                <div class="order-cell order-info">团购信息</div>
                <div class="order-cell order-quantity">数量</div>
                <div class="order-cell order-money">总价</div>
                <div class="order-cell order-status">订单状态</div>
                <div class="order-cell order-op">操作</div>
            </div>
			 <!--{if $selector=='index' || $selector=='pay' || $selector=='unpay' || $selector=='' }-->
			<!--{loop $orders $index $one}-->
            <div class="J-order-w">
                <div class="order-title">订单编号：<a href="/order/view.php?id={$one['id']}" target="_blank">{$one['id']}</a>
                    <!--{if $one['state']=='pay'}-->&nbsp;<!--{elseif $teams[$one['team_id']]['close_time']>0}-->&nbsp;<!--{else}--> <a class="del order-cancel ajaxlink" href="/ajax/order.php?action=orderdel&id={$one['id']}" ask="确定删除本订单？"></a><!--{/if}-->
                       
                   
                </div>
                <div class="order-row">
                    <div  class="order-row--sub order-row--last" >
                        <div class="order-cell order-info">
                            <div class="deal-info cf">
                                <a class="img-w" href="/team.php?id={$one['team_id']}" target="_blank" title="{$teams[$one['team_id']]['title']}"><img src="${team_image($teams[$one['team_id']]['image'])}" width="81" height="50" /></a>
                                <div class="info-detail">
                                    <a class="deal-title" href="/team.php?id={$one['team_id']}" title="" target="_blank">{$teams[$one['team_id']]['title']}</a>
                                    <p>团购结束：${date('Y-m-d H:i',$one['create_time'])}</p>
                                    <a target="_blank" class="biz-info" href="/partner.php?id={$one['partner_id']}">商家信息</a>
                                </div>
                            </div>
                        </div>
                        <div class="order-cell order-quantity">{$one['quantity']}</div>
                        <div class="order-cell order-money">
                            <span class="money">{$currency}</span>${moneyit($one['origin'])}
                            <br /><span class="delivery-text">
                                
                                
                            </span>
                        </div>
                        <div class="order-cell order-status">
                                <!--{if $one['state']=='pay'}-->已付款
								<div><a target="_blank"  href="/order/view.php?id={$one['id']}">订单详情</a></div>
								<!--{elseif $teams[$one['team_id']]['close_time']>0}-->已过期
								<div><a target="_blank"  href="/order/view.php?id={$one['id']}">订单详情</a></div>
								<!--{else}-->未付款<!--{/if}-->
                                
                        </div> 
                            <div class="order-cell order-op">
                              
								<!--{if ($one['state']=='unpay'&&$teams[$one['team_id']]['close_time']==0)}--><a href="/order/check.php?id={$one['id']}" class="btn-hot btn-mini">付款</a>&nbsp;<!--{elseif $one['state']=='pay'}--><a href="/order/ajax.php?action=ordercomment&id={$one['id']}" class="btn-hot btn-mini ajaxlink">${$one['comment_time'] ? '修改评价' : '点评'}</a><!--{if $one['allowrefund']=='Y' && $one['rstate']=='normal'}--><a href="/ajax/refund.php?action=askrefund&id={$one['id']}" class="btn-hot btn-mini ajaxlink">申请退款</a><!--{/if}--><!--{elseif $teams[$one['team_id']]['close_time']>0 }--><a href="/ajax/order.php?action=orderdel&id={$one['id']}" class="btn-hot btn-mini ajaxlink" ask="确定删除本订单？">删除</a><!--{/if}-->
                                   
                                    
                            </div>
                    </div>
                </div>
            </div>
          <!--{/loop}-->
		  <div style="margin:5px auto;">{$pagestring}</div>
		  <!--{else}-->
          <!--{loop $orders $index $one}-->
            <div class="J-order-w">
                <div class="order-title">订单编号：<a href="/order/view.php?id={$one['id']}" target="_blank">{$one['id']}</a>
                    
                       
                   
                </div>
                <div class="order-row">
                    <div  class="order-row--sub order-row--last" >
                        <div class="order-cell order-info">
                            <div class="deal-info cf">
                                <a class="img-w" href="/team.php?id={$one['team_id']}" target="_blank" title="{$teams[$one['team_id']]['title']}"><img src="${team_image($teams[$one['team_id']]['image'])}" width="81" height="50" /></a>
                                <div class="info-detail">
                                    <a class="deal-title" href="/team.php?id={$one['team_id']}" title="" target="_blank">{$teams[$one['team_id']]['title']}</a>
                                    <p>有效期至：${date('Y-m-d', $teams[$one['team_id']]['expire_time'])}</p>
                                    <a target="_blank" class="biz-info" href="/partner.php?id={$one['partner_id']}">商家信息</a>
                                </div>
                            </div>
                        </div>
                        <div class="order-cell order-quantity">{$one['quantity']}</div>
                        <div class="order-cell order-money">
                           <span class="money">{$currency}</span>${moneyit($one['origin'])}
                            <br /><span class="delivery-text">
                                
                                
                            </span>
                        </div>
                        <div class="order-cell order-status">
                                已付款
                                <div><a target="_blank"  href="/order/view.php?id={$one['id']}">订单详情</a></div>
                        </div> 
                            <div class="order-cell order-op">
                                  
                                    <!--{if ($one['rstate']=='askrefund')}--><a href="/ajax/refund.php?action=viewrefund&id={$one['id']}" class="btn-hot btn-mini ajaxlink">退款审核中</a><!--{elseif $one['rstate']=='normal'}--><a href="/ajax/refund.php?action=askrefund&id={$one['id']}" class="btn-hot btn-mini ajaxlink">申请退款</a>
							<!--{elseif $one['rstate']=='berefund'}--><a href="javascript:;" class="btn-hot btn-mini">退款成功</a><!--{elseif $one['rstate']=='norefund'}--><a href="javascript:;" class="btn-hot btn-mini">退款失败</a><!--{/if}-->
                            </div>
                    </div>
                </div>
            </div>
			 <!--{/loop}-->
		 <div style="margin:5px auto;">{$pagestring}</div>
           
				<!--{/if}-->
				
        </div>
    

	</div>
</div>


        </div>
		
		</div> <!-- bdw end -->

<!--{include footer}-->